<?php
/**
 * 同步客户消费订单 （同步erp订单至第三方平台）(同步异常订单)
 */

namespace App\Console\Commands\Rakuten;

use App\Logic\Plat\SyncPlatOrder;
use Illuminate\Console\Command;

class SyncCustomerOrderException extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'erp-order:error-customer-order {delivery_order_no=null} {account_id=0}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $deliveryOrderNo = $this->argument('delivery_order_no');
        $accountId = $this->argument('account_id');

        SyncPlatOrder::deliveryOrderException($deliveryOrderNo,$accountId);
        $this->info('finish!');
    }

}
